<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <%@include file="/static/common/common.jsp"%>
  <script src="/static/js/dictionaries.js"></script>
  <script src="/static/js/details.js"></script>
</head>
<body class="easyui-layout">


<%--数据字典主目录--%>
<div data-options="region:'west',title:'数据字典',split:true" style="width:670px;">
  <table id="dictionaries_datagrid"></table>

  <%--工具栏--%>
  <div id="dictionaries_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="add">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新
    </a></div>

  <%--编辑界面按钮工具栏--%>
  <div id="form_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
  </div>

  <%--编辑框界面--%>
  <div id="dictionaries_dialog">
    <form method="post" id="dictionaries_form">
      <input type="hidden" name="id" id="dictionariesId">
      <table align="center" fit="true">
        <tbody>
        <tr>
          <td>目录编号:</td>
          <td><input name="sn" class="easyui-textbox"/></td>
        </tr>
        <tr>
          <td>目录名称:</td>
          <td><input name="name" class="easyui-textbox" /></td>
        </tr>
        <tr>
          <td>目录简介:</td>
          <td>
                    <textarea name="info" id="type_Remark"
                              class="easyui-validatebox" style="height:80px;width: 120px">
                    </textarea>
          </td>
        </tr>
        </tbody>
      </table>
    </form>
  </div>
</div>



<%--数据字典明细--%>
<div data-options="region:'center',title:'字典目录明细'" style="padding:5px;background:#eee;">

  <table id="details_datagrid"></table>

  <%--工具栏--%>
  <div id="details_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-item="add_item">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-item="reload_item">刷新
    </a></div>

  <%--编辑界面按钮工具栏--%>
  <div id="form_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-item="save_item">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-item="cancel_item">取消</a>
  </div>

  <%--编辑框界面--%>
  <div id="details_dialog">
    <form method="post" id="details_form">
      <input type="hidden" name="id" id="detailsId">
      <table align="center" fit="true">
        <tbody>
        <tr>
          <td>明细名称:</td>
          <td><input name="name" class="easyui-textbox"/></td>
        </tr>
        <tr>
          <td>目录简介:</td>
          <td>
                    <textarea name="info" id="type_Remark21"
                              class="easyui-validatebox" style="height:80px;width: 120px">
                    </textarea>
          </td>
        </tr>

        <tr>
          <td>所属目录:</td>
          <td><input  name="directory.id" id="catalogues" class="easyui-combobox"
                      data-options="valueField: 'id',
                       textField: 'name',panelHeight:'auto',
                       url:'/dictionaries/selectAll.do'
                       "/></td>
        </tr>
        </tbody>
      </table>
    </form>
  </div>
</div>
</body>

</html>
